import request from '@/utils/request'

// 获取部门列表
export const getDeptmentList = () => request({
  url: '/company/department'
})

// 删除部门列表
export const delDeptmentList = (id) => request({
  url: `/company/department/${id}`,
  method: 'DELETE'
})

// 修改部门列表
export const EditDeptmentList = (id) => request({
  url: `/company/department/${id}`,
  method: 'PUT'
})

// 查询详情部门列表
export const getDeptmentListDail = (id) => request({
  url: `/company/department/${id}`,
  method: 'GET'
})

// 新增部门
export const addDeptmentList = data => request({
  url: '/company/department',
  method: 'POST',
  data
})
